/*
 * 百度在线网络技术（北京）有限公司拥有本软件版权2021并保留所有权利。
 * Copyright 2021, Baidu.com,Inc 2:Baidu Online Network Technology (Beijing) Co.,Ltd,
 * All rights reserved.
 */

package com.azdebugit.moshi.test.learn.factory.method.t2.impl;

import com.azdebugit.moshi.test.learn.factory.method.t2.inter.Animal;
import com.azdebugit.moshi.test.learn.factory.method.t2.inter.AnimalFarm;

//具体工厂：养牛场
public class CattleFarm implements AnimalFarm {
    @Override
    public Animal newAnimal() {
        System.out.println("新牛出生！");
        return new Cattle();
    }
}